package com.chandra.pos.product.dao.entity;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by Admin on 8/15/14.
 */
public interface ProductRepository extends JpaRepository<ProductEntity, Long>, ProductRepositoryCustom {

    ProductEntity findByName(String name);


    Page<ProductEntity> findByNameContainingIgnoreCase(String query, Pageable pageable);

    ProductEntity findBySku(String sku);
}
